package com.study.talk.netty.message.response;


import com.study.common.annotation.Desc;
import com.study.talk.netty.message.MessageType;
import com.study.talk.netty.message.TalkMessage;

@Desc("发出群聊聊信息的客户端的消息回响")
public class GroupMessageSelfResponse extends TalkMessage {


    private Integer sendId;

    private Integer groupId;

    private String content;

    private Integer messageType = 0;

    private Boolean success;

    @Desc("原因")
    private String reason;

    public GroupMessageSelfResponse() {
    }

    public GroupMessageSelfResponse(Integer sendId, Integer groupId, String content, Integer messageType, Boolean success, String reason) {
        this.sendId = sendId;
        this.groupId = groupId;
        this.content = content;
        this.messageType = messageType;
        this.success = success;
        this.reason = reason;
    }

    @Override
    public byte getType() {
        return MessageType.GROUP_MESSAGE_SELF_RESPONSE;
    }

    public Integer getSendId() {
        return sendId;
    }

    public void setSendId(Integer sendId) {
        this.sendId = sendId;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getMessageType() {
        return messageType;
    }

    public void setMessageType(Integer messageType) {
        this.messageType = messageType;
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }
}
